﻿using System.Diagnostics;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows;

namespace InstantWatch.Controls {
	/// <summary>
	/// Interaction logic for QueueItemView.xaml
	/// </summary>
	public partial class QueueItemView : UserControl {
		public QueueItemView() {
			InitializeComponent();
		}

		public QueueItem Item { get { return this.DataContext as QueueItem; } }

		private void UserControl_MouseDoubleClick(object sender, MouseButtonEventArgs e) {
			if (this.Item != null) {
				MessageBox.Show(Item.Name);
			}
		}
	}
}
